package pulpfizz.physics;

import java.util.ArrayList;

import org.jbox2d.collision.AABB;
import org.jbox2d.common.Vec2;
import org.jbox2d.dynamics.Body;
import org.jbox2d.dynamics.World;

/**
 * Used with PhysicsTileMap to allow more complex
 * bodies to be created from a tile map.
 * <BR><BR>
 * Note that while this function may create multiple bodies,
 * the only one that is attached to a sprite when a PhysicsTileMap
 * is created is the first one on the list, so you will have to
 * manually attach sprites to the other bodies if your BodyCreatorFunction
 * creates multiple bodies in a single tile.
 * 
 * @author eric
 */
interface BodyCreatorFunction {
	public ArrayList<Body> create(AABB p, World w);
}